package com.company.demo.handlers;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * ====设置端口号和路径
 * 1.在.properties文件中设置
 * server.port=9999
 * #Tomcat的上下文路径
 * server.servlet.context-path=/xxx
 * 2.在.yml文件中设置
 * server:
 *   port: 9898
 *   servlet:
 *     context-path: /xxx
 */


/**
 * =====设置Actuator监控
 * 1.设置依赖
 * <dependency>
 *             <groupId>org.springframework.boot</groupId>
 *             <artifactId>spring-boot-starter-actuator</artifactId>
 *         </dependency>
 *  2.设置监控的路径和端口号
 * management.server.port=9999
 * management.server.servlet.context-path=/xxx
 * #指定监控终端的基本路径，默认为actuator
 * management.endpoints.web.base-path=/base
 */

/**
 *#开放所有监控终端，默认只开启了health和info监控终端
 * #在yml中*号为关键字，需将其使用双引号引起来"*"
 * management.endpoints.web.exposure.include=*
 *
 * #单独关闭env和beans监控终端
 * management.endpoints.web.exposure.exclude=env,beans
 * #设置自定义info信息
 * #info.company.name=abc
 * #
 * #info.company.url=http://www.abc.com
 * #info.company.addr=beijing china
 *
 * info.auth.name=lisi
 * info.auth.dep=development
 *
 * #从pom.xml获取相应的值
 * #从项目中获取
 * info.project.groupid=@project.groupId@
 * info.project.artifactid=@project.artifactId@
 * #info.project.version=@project.version@
 * #info.project.name=@project.name@#开放所有监控终端，默认只开启了health和info监控终端
 * #在yml中*号为关键字，需将其使用双引号引起来"*"
 * management.endpoints.web.exposure.include=*
 *
 * #单独关闭env和beans监控终端
 * management.endpoints.web.exposure.exclude=env,beans
 * #设置自定义info信息
 * #info.company.name=abc
 * #
 * #info.company.url=http://www.abc.com
 * #info.company.addr=beijing china
 *
 * info.auth.name=lisi
 * info.auth.dep=development
 *
 * #从pom.xml获取相应的值
 * #从项目中获取
 * info.project.groupid=@project.groupId@
 * info.project.artifactid=@project.artifactId@
 * #info.project.version=@project.version@
 * #info.project.name=@project.name@
 *
 */

@RestController
@RequestMapping("/test")
public class SomeHandler {

    @RequestMapping("/some")
    public String myHandler(){
        return "hello springboot！！！！！！！！！！！！！！！";
    }
}
